package com.cong.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cong.project.model.entity.MerchantMessage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cong.project.model.request.MerchantAddRequest;
import com.cong.project.model.request.MerchantSearchRequest;
import com.cong.project.model.request.TokenUserRequest;
import com.cong.project.model.vo.MerChantVo;

/**
* @author 86188
* @description 针对表【merchant_message(商户信息表)】的数据库操作Service
* @createDate 2022-09-22 10:36:02
*/
public interface MerchantMessageService extends IService<MerchantMessage> {
    /**
     * 查询商店列表
     *
     * @param merchantSearchRequest
     * @return
     */
    IPage<MerChantVo> getShopList(MerchantSearchRequest merchantSearchRequest);

    /**
     * 增加商户信息
     * @param merchantAddRequest
     * @param tokenUserRequest
     * @return
     */
    boolean addMerchant(MerchantAddRequest merchantAddRequest, TokenUserRequest tokenUserRequest);

    /**
     * 获得商业细节
     *
     * @param merchantId 商人id
     * @return {@link MerChantVo}
     */
    MerChantVo getMerchantDetail(Long merchantId);
}
